package com.dongdongshop.controller;

import com.alibaba.csp.sentinel.slots.block.BlockException;
import com.dongdongshop.data.Result;
import org.springframework.web.bind.annotation.RequestParam;

public class BaseController {
    /**
     * 基类
     * 降级方法
     * @param e
     * @return
     */
    public Result hotBlockHandler(BlockException e) {
        return Result.fallback();
    }

    public Result seckillGoodsById(@RequestParam Long id,BlockException e) {
        return Result.fallback();
    }
}
